package cn.dy.workatten.service;

import java.util.Date;

import cn.dy.base.framework.esb.def.ESBAnnotation;
import cn.dy.base.framework.esb.def.RepMessage;
import cn.dy.workatten.pojo.ScheduleCfg;

/**
 * @author Lucky
 *	班次管理服务
 */
public abstract interface ScheduleCfgService {

	
	/**
	 * 	根据id删除班次
	 * @param id
	 * @return
	 */
	@ESBAnnotation(names={"id"}, req_login=false, req_log=true, record_log_detail=true)
    public abstract RepMessage deleteScheduleCfgById(long id);
	
	/**
	 * 	根据id查询班次详情
	 * @param id
	 * @return
	 */
	@ESBAnnotation(names={"id"}, req_login=false, req_log=true, record_log_detail=true)
    public abstract RepMessage getScheduleCfgById(long id);
	
	
	
	/**
	 * 	修改班次
	 * @param scheduleCfg
	 * @return
	 */
	@ESBAnnotation(names={"scheduleCfg"}, req_login=false, req_log=true, record_log_detail=true)
	public abstract RepMessage updateScheduleCfg( ScheduleCfg scheduleCfg);
	
	
	/**
	 * 	查询班次列表
	 * @return
	 */
	@ESBAnnotation(names={""}, req_login=false, req_log=true, record_log_detail=true)
	public abstract RepMessage getAllScheduleCfg();
	
	
	/**
	 * 查询班次列表，分页查询
	 * @param schedule_type
	 * @param schedule_name
	 * @param pageNum 第几页
	 * @param pageSize 
	 * @return
	 */
	@ESBAnnotation(names = { "schedule_type", "schedule_name", "pageNum", "pageSize" }, req_login = false)
	public abstract RepMessage queryScheduleCfgByPage(String schedule_type, String schedule_name, int pageNum, int pageSize);
	
}
